<template>
  <view id="app">
    <!-- 这里是应用的根组件 -->
  </view>
</template>

<script setup lang="ts">
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
import { useAppStore } from './src/store/app'

const appStore = useAppStore()

onLaunch(() => {
  console.log('App Launch')
  // 应用启动时的初始化逻辑
  appStore.initApp()
})

onShow(() => {
  console.log('App Show')
  // 应用从后台进入前台时
})

onHide(() => {
  console.log('App Hide')
  // 应用从前台进入后台时
})
</script>

<style lang="scss">
@import './src/assets/styles/global.scss';

#app {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}
</style>
